package com.jnzc.ocr.serv.shop.service;

import com.jnzc.ocr.serv.shop.entity.ShopProductAttr;
import com.jnzc.ocr.serv.shop.entity.ShopProductSku;
import com.jnzc.ocr.serv.shop.entity.ShopProductSkuAttr;
import com.jnzc.ocr.serv.shop.filter.ShopProductSkuAttrFilter;
import com.jnzc.ocr.dependencies.serv.mybatis.MybatisService;
import java.util.List;
import java.util.Map;

/**
 * @author zhangcm
 * @version 1.0, 2017-12-24
 */
public interface ShopProductSkuAttrService extends MybatisService<ShopProductSkuAttr, ShopProductSkuAttrFilter> {

    void save(ShopProductSku sku, List<Long> attrIdList);

    void deleteByProductId(Long productId, Long shopId);

    void deleteBySkuId(Long skuId, Long shopId);

    void deleteBySkuId(List<Long> skuIdList, Long shopId);

    Map<Long, List<ShopProductSkuAttr>> listSkuMapByProductId(Long productId, Long shopId);
}
